﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IrisMembership.DomainClasses.Configurations
{
    public class UserConfig : EntityTypeConfiguration<User>
    {
        public UserConfig()
        {
            Property(u => u.Email).IsRequired().HasMaxLength(200);
            Property(u => u.Name).IsRequired().HasMaxLength(500);
            Property(u => u.Password).IsRequired();
            Property(u => u.UserName).IsRequired().HasMaxLength(500);
        }
    }
}
